import React, { useContext } from 'react'
// 将最外层组件的AppContext引入
import { AppContext } from '../../App'

export default function List() {
    const car3 = useContext(AppContext)
    return (
        <div>
            <h3>我孙儿,开的是爷爷的车{car3}</h3>
        </div>
    )
}
